<!--  -->
<template>
  <div class="container" @touchmove.prevent>
    <div class="title">
      <div class="box">
        <img class="logo" src="@/assets/images/ps_icon.png" alt />
        <span class="text">普世医学</span>
        <!-- <span class="text2">专业人士</span> -->
      </div>
    </div>
    <div style="height: 45px; content: ''"></div>
    <van-divider
      content-position="left"
      :style="{
        color: '#4c63ff',
        borderColor: '#4c63ff',
        margin: '0',
        padding: '6px 0',
      }"
      >服务病患</van-divider
    >
    <div class="i-btn">
      <div class="i-box" @click="toCheckList(1)">
        <img src="@/assets/images/db.png" alt="" />
        <p>新的任务</p>
      </div>
      <div class="i-box" @click="toCheckList(2)">
        <img src="@/assets/images/xrw.png" alt="" />
        <p>现有任务</p>
      </div>
      <div class="i-box" @click="toCheckList(3)">
        <img src="@/assets/images/rww.png" alt="" />
        <p>任务完成</p>
      </div>
    </div>

    <van-divider
      content-position="left"
      :style="{
        color: '#4775d9',
        borderColor: '#4775d9',
        margin: '0',
        padding: '6px 0',
      }"
      >科研服务</van-divider
    >
    <div class="i-btn">
      <div class="i-box" @click="toHezuo">
        <img src="@/assets/images/hz.png" alt="" />
        <p>项目合作</p>
      </div>
      <div class="i-box" @click="toTraining">
        <img src="@/assets/images/kcb.png" alt="" />
        <p>课程培训</p>
      </div>
      <div class="i-box" @click="toTalk">
        <img src="@/assets/images/lt.png" alt="" />
        <p>交流论坛</p>
      </div>
    </div>
    <van-divider
      content-position="left"
      :style="{
        color: '#4775d9',
        borderColor: '#4775d9',
        margin: '0',
        padding: '6px 0',
      }"
      >帮助</van-divider
    >
    <div class="i-btn">
      <div class="i-box">
        <img src="@/assets/images/ysal1.png" @click="toDemoList" alt="" />
        <p>案例演示</p>
      </div>
      <div class="i-box" @click="toHelp">
        <img src="@/assets/images/help1.png" alt="" />
        <p>使用指南</p>
      </div>
      <div class="i-box" @click="toFeedBack">
        <img src="@/assets/images/fankui1.png" alt="" />
        <p>问题反馈</p>
      </div>
    </div>
  </div>
</template>

<script>
import { Dialog, Toast } from "vant";
export default {
  name: "dindex",
  data() {
    return {};
  },

  components: {},

  computed: {},

  created() {},
  mounted() {},

  methods: {
    // 待查阅列表
    toCheckList(i) {
      this.$router.push({ path: "/checkList" });
      this.$store.commit("list/SET_DOCTOR_BACK_STATUS", i);
    },
    // 交流论坛
    toTalk() {
      this.$router.push({ path: "/sindex" });
    },
    // 课程培训
    toTraining() {
      this.$router.push({ path: "/Training" });
    },
    //
    toHezuo() {
      this.$router.push({
        path: "/project",
      });
    },
    //
    toHelp() {
      Dialog.alert({
        title: "提示",
        message: "此模块正在完善中。。",
      }).then(() => {});
    },
    //演示案例
    toDemoList() {
      this.$router.push({
        name: "demoList",
        params: {
          platform: 1,
        },
      });
    },
    // 问题反馈
    toFeedBack() {
      this.$router.push({
        name: "feedBack",
        params: {
          platform: 1,
        },
      });
    },
  },
};
</script>
<style lang='scss' scoped>
.container {
  position: relative;
  height: 100vh;
  background: #f5f5f5;
  & .title {
    width: 100%;
    height: 45px;
    position: fixed;
    top: 0;
    z-index: 10;
    background: #8192ff;
    background-image: linear-gradient(
      180deg,
      #3751ff 0%,
      #4c63ff 50%,
      #677aff 75%,
      #909fff 100%
    );
    color: #fff;
    & .box {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    & .logo {
      width: 45px;
      vertical-align: middle;
    }
    & .text {
      vertical-align: middle;
      font-size: 16px;
      margin-left: 5px;
    }
    & .text2 {
      font-size: 0.1rem;
      vertical-align: sub;
      margin-left: 0.05rem;
      // border: 1px solid #fff;
      border-radius: 20px;
      //   color: green;
      // padding: 0.02rem;
    }
  }
  & .analysis {
    width: 90%;
    height: 1rem;
    background: #ffffff;
    margin: auto;
    border: 1px solid #4775d94b;
    box-shadow: 0px 0px 8px #4775d949;
    border-radius: 10px;
    margin-bottom: 0.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    // & .icon {
    //   font-size: 0.3rem;
    //   color: #4775d9;
    // }
    & .van-image {
      vertical-align: middle;
    }
    & .text {
      font-size: 0.18rem;
      font-weight: 600;
      vertical-align: middle;
      margin-left: 0.1rem;
    }
  }
}
.boxa {
  // height: 200px;
  width: 200px;
  background-color: black;
}
.draw-enter-active,
.draw-leave-active {
  transition: all 1s ease;
}
.draw-enter, .draw-leave-to /* .fade-leave-active below version 2.1.8 */ {
  height: 0;
}
.i-btn {
  width: 90%;
  margin: 0 auto;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 0.1rem;
  & .i-box {
    background: #ffffff;
    border: 1px solid #4775d94b;
    box-shadow: 0px 0px 8px #4775d949;
    border-radius: 10px;
    width: 1rem;
    margin-right: 0.15rem;
    & img {
      width: 1rem;
      height: 0.7rem;
      padding: 0.15rem 0.3rem;
      box-sizing: border-box;
    }
    & p {
      font-size: 0.14rem;
      margin-bottom: 0.1rem;
    }
  }
}
.uploadflag {
  background: #e4e4e4 !important;
}
</style>